﻿#ifndef CHARGEWATCHINGDC_H
#define CHARGEWATCHINGDC_H

#include <QWidget>
#include "Global.h"

namespace Ui {
class ChargeWatchingDC;
}

class ChargeWatchingDC : public QWidget
{
    Q_OBJECT
    
public:
    QLabel* time;
    QLabel* signal;
    explicit ChargeWatchingDC(QWidget *parent = 0);
    ~ChargeWatchingDC();

signals:
    void Settle_Accounts(int GUN_NO);
    
public slots:
    void Off_lineSlot();
    void On_lineSlot();

private slots:
    void onShorKeyboard();
    void on_buttonDC1_clicked();
    void HintStop_Button(int current);
    void on_pushButton_clicked();
    void StopingChargingSlot(int GUN_NO);
    void onStartingDeviceFailSlot(int GUN_NO);
    void onStartingDeviceSlot(int GUN_NO);
    void onChargingSlot(int GUN_NO);
    void SwipCardStop(QString CardNum, int value, uint availabelMoney);
    void on_buttonDC2_clicked();
    void on_buttonDC3_clicked();
    void appStopbutton();
    void on_StopVINButton1_clicked();
    void on_StopVINButton2_clicked();
    void on_StopVINButton3_clicked();
    void handle_put_in_charge(int GUN_NO);

private:
//    QPushButton *buttonDC1_1;
//    QPushButton *buttonDC2_2;
//    QPushButton *buttonDC3_3;
    void RequestStopCharging();
    void Show_Charging_Infomation(int _focus_gun_);
    void Clear_OldInfo();
    void Button_Hide();
    Ui::ChargeWatchingDC *ui;
};

#endif // CHARGEWATCHINGDC_H
